package Relatorios;

import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTable;
import javax.swing.border.EmptyBorder;

import skin.LookAndFeelSelector;

import com.toedter.calendar.JDateChooser;

import factory.FabricaDeFrame;

public class FrmMovimentacao extends JFrame {
	private JPanel contentPane;
	private JLabel lblSelecioneOCliente;
	private JLabel lblDataInicial;
	private JLabel lblDataFinal;
	private JDateChooser dataInicial;
	private JDateChooser dataFinal;
	private JTable tbHistorico;
	private JButton btnGerarRelatorio;
	private JSeparator separator;
	private JButton btnExcel;
	private JButton btnPdf;
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					LookAndFeelSelector.lookAndFeelNimbus();
					FrmMovimentacao frame = (FrmMovimentacao) FabricaDeFrame.getInstanceMovimentacao();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FrmMovimentacao() {
		setTitle("Movimenta\u00E7\u00E3o");
		setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Projetos\\SallonSoft-trunk\\src\\Repositorio\\icon.png"));
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 516, 450);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		setLocationRelativeTo(null);
		contentPane.setLayout(null);
		
		lblSelecioneOCliente = new JLabel("Selecione o per\u00EDodo de movimenta\u00E7\u00E3o:");
		lblSelecioneOCliente.setBounds(17, 22, 236, 16);
		contentPane.add(lblSelecioneOCliente);
		
		lblDataInicial = new JLabel("Data Inicial: ");
		lblDataInicial.setBounds(17, 54, 81, 16);
		contentPane.add(lblDataInicial);
		
		dataInicial =  new JDateChooser();
		dataInicial.setBounds(161, 50, 120, 25);
		contentPane.add(dataInicial);
		
		lblDataFinal = new JLabel("Data Final:");
		lblDataFinal.setBounds(17, 88, 81, 16);
		contentPane.add(lblDataFinal);
		
		dataFinal =  new JDateChooser();
		dataFinal.setBounds(161, 84, 120, 25);
		contentPane.add(dataFinal);
	
		btnGerarRelatorio = new JButton("Gerar");
		btnGerarRelatorio.setBounds(370, 71, 90, 28);
		contentPane.add(btnGerarRelatorio);
		
		separator = new JSeparator();
		separator.setBounds(6, 125, 491, 8);
		contentPane.add(separator);
		
		tbHistorico = new JTable();
		tbHistorico.setBounds(17, 145, 465, 196);
		contentPane.add(tbHistorico);
		
		btnExcel = new JButton();
		btnExcel.setToolTipText("Exporta para Excel");
		btnExcel.setIcon(new ImageIcon("C:\\Projetos\\SallonSoft-trunk\\src\\Repositorio\\btn_excel.png"));
		btnExcel.setBounds(355, 353, 50, 50);
		contentPane.add(btnExcel);
		
		btnPdf = new JButton("");
		btnPdf.setToolTipText("Exporta para PDF");
		btnPdf.setIcon(new ImageIcon("C:\\Projetos\\SallonSoft-trunk\\src\\Repositorio\\btn_pdf.png"));
		btnPdf.setBounds(432, 353,50, 50);
		contentPane.add(btnPdf);
		
		
		
	}
}
